﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SoftKeyboardSample
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length == 3)
            {
               int X = int.Parse(args[0]);
               int Y = int.Parse(args[1]);
               IntPtr parent = new IntPtr(int.Parse(args[2]));
               Application.Run(new SoftKeyboard(new Point(X,Y), parent));
            }
            else
            {
                Application.Run(new SoftKeyboard());
            }  
        }
    }
}
